package top.lyc829.days.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import top.lyc829.days.bean.Event;

import java.util.List;

public interface EventDao extends JpaRepository<Event, Integer> {

    List<Event> findAllByUserId(int id);

    void deleteByUserIdAndCreateTime(int userId, Long creatTime);

    Event findByUserIdAndCreateTime(int userId, Long createTime);

}
